import { HYEventStore } from "hy-event-store"
import { getSongRecommend } from "../service/request/main"
const recommendStore = new HYEventStore({
  state: {
    recommend: []
  },
  actions: {
    async fetchSongsRecomendAction(ctx) {
      const res = await getSongRecommend()
      ctx.recommend = res.playlist
    }
  }
})


export default recommendStore
